package com.xh.bussiness.permission.model;

/**
 * <p>
 *
 * </p>
 *
 * @author Pitt zhang
 * @since 2019/10/16
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xh.bussiness.longwen.bean.dto.AreaDto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用户校区表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ts_user_school")
public class UserSchool extends Model {

    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 校区id
     */
    private String schoolId;
    /**
     * 是否默认选中（0否，1是）
     */
    private Integer isDefault;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
